﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UC_Loaisanpham.ascx.cs" Inherits="Manager_Sanpham1_Controls_UC_Loaisanpham" %>
<div class="nav_tabs">
        <ul>
            <li><div class="Selected"><asp:HyperLink ID="hplXemloaiSP" runat="server">Xem theo loại sản phẩm</asp:HyperLink></div></li>
            <li><div class="Unselected"><asp:HyperLink ID="hplThemsanpham" runat="server">Thêm sản phẩm</asp:HyperLink></div></li>
            <li><div class="Unselected"><asp:HyperLink ID="hplSualoiSP" runat="server">Sữa loại sản phẩm</asp:HyperLink></div></li>
        </ul>
</div>
    <div class="Clear">
        <br />
    </div>
    <div class="description"><p>Bạn có thể xem các sản phẩm trong loại sản phẩm này.</p></div>
<asp:GridView ID="GVTheoLoai" runat="server" AutoGenerateColumns="False" 
    BackColor="Black" BorderColor="Black" BorderStyle="Double" BorderWidth="1px" 
    CellPadding="4" EditIndex="0" onrowcommand="GVTheoLoai_RowCommand">
    <Columns>
        <asp:TemplateField HeaderText="Sản phẩm">
            <ItemTemplate>
                <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="true" 
                    ForeColor="#003399" 
                    NavigateUrl='<%#getUrl((Eval("Manufacturer_Id").ToString()),(Eval("Id").ToString())) %>' 
                    Text='<%#Eval("Name") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Trạng thái">
            <ItemTemplate>
                      
                        <asp:Label runat="server" 
                    Text='<%#trangthai(bool.Parse(Eval("Status").ToString())) %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Hành động">
            <ItemTemplate>
                <asp:Button ID="Suasp" runat="server" Text="Sửa" CommandArgument='<%#Eval("Id") %>' CommandName="Sua"/>
                <asp:Button ID="Xoasp" runat="server" Text='<%#Status(bool.Parse(Eval("Status").ToString())) %>' CommandArgument='<%#Eval("Id") %>' CommandName='<%#Status(bool.Parse(Eval("Status").ToString())) %>' />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
    <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
    <RowStyle BackColor="White" ForeColor="Black" />
    <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
    <SortedAscendingCellStyle BackColor="#EDF6F6" />
    <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
    <SortedDescendingCellStyle BackColor="#D6DFDF" />
    <SortedDescendingHeaderStyle BackColor="#002876" />
</asp:GridView>
